package org.zjx.action.login;

import org.zjx.action.Action;
import org.zjx.core.IWindow;
import org.zjx.state.AccountState;
import org.zjx.util.ImageUtil;

import java.awt.*;
import java.awt.image.BufferedImage;

public class LoginServerAction extends Action {
    public static final BufferedImage SERVER_PREVIOUS_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHgAAAAnCAYAAADEvIzwAAAVFElEQVR4Xs2baXBVZZrHn6q2TRDEEBGyke0md8tds5OE7LnZN0hCwhpBEhoQUZFFQfbNsARE0cYFF3qwnR6t6XGannZGrK6xmCqZdsZudVqnpKt0xqrpD3yYD/Nt5vk/57znnnPuDSQYuoeqX71nP+95f+/zvO85uRDxv5HGIrqyd/iWfHR8lH7z6lb63du76MvLB4Wvf3FU+OIX+4QvL0dR29R287oZdb753Nvi/enj6/cP/r/i9+/uot9d3ErXnh2lq0eHJ438W1MfpMu7BqOsNzFYLnx4dJR+e+Fx+pfzmyxce249XTuzzsqJB4WPxibmg/ER+qfTI0Zp5+OXdlr419d3GXz+zmH6/Xtj9NUvx+mr95+nrz9kfn2evvn4Av3HZz+hbz7X+Tcr//XVuzfl269+Sv/51dsxfPvZRfr20yjfXHsphj98dE7jw6MxXP/g8LTy2aVtMSInQv71zJ5Fe1OSaMfcKOuTEo3y1ZEIvXdkFf3y+Co6tr6JNqxeRn29Q9PGksE1QmPrhvg0TY0mJhLZaNDcvImaWx6mllawmVraNlNr+yPU0mGl9Vb0TI7B1aPC8hXD08b2R0fo4olh+vdf7ZWI/uJnT8bIjAc5WSAkKobuu8dgNHkOnV/dQH93aoT+cs9SWtUVoUhjA5UUd1PA30IBZx2FXIy7PoqnQQgXNBolKPRFKBzgMhihwqJOoagkCtYDoRYKFbZScckSjXKNorLFQgXKymVUVKFRuHBICCnKp0YRn4PrFVctp9KalVRat4pK64epumZQKJuIqlhKqhdrVE6BsnaNYlMZDz62qn6IOrvaaMPwYrr2V9slkj9/64kYoXao1ZlLZ7vq6aX2MD3T4KP6cB4tX1xDe7cuob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LPnGjE4FAbQrfnIKywGBEUsVGVJLepDXENzYhv60RsQwsQW9+IkLBQITkkIoJGQi4iy3Yiopjm8aIiZO0oxNBwM65cHaBFvJ8Wc96AZYnFXSzyP/L2kRspnpanbgzg8uVeHD9OEotyxHobU0Vi65sQQ2ITd+1GAsnd0tlDdAMp+w9gc1Ex1pJgXo//LjqaRkQRoiuqaERUIbZ0BzJ3luL4R824cLGHRPcLLn/aK7h+bQDXrw9YqT/4/I8EBAucJqZk/sqkxdVJS+yF8SaMHG9CVuUORJeVI6a2DvEctU0t2NK+G4lEclcvkrpI8O4eILWvnw72YX1ykrUeb1yPdUlJFMElFOKNiK2rR0xpKTKry7Gnp05sx1n2yZ81Ci6casKFcx3iwZ9+0igQxz/yg7h8oVOsswz3LUdsd18tihprEF+Sj6iKSjEVJ7TSpretA0m7u0hoN5J7DyCFSO7po7QP/wuzfRMDQj15/AAAAABJRU5ErkJggg==");
    public static final BufferedImage SERVER_AGREE_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHQAAAAjCAYAAABFES5oAAATsklEQVR42rWbPXQb15XH79nYjuM46y+SAAiAxBdJ8Bvgh0RJpESJIEDxAyApigIlUSKtT9u7jo+d9TrrdaLEli0nsS37OHt8zmaPXWzOUbGFihQutlDJIoWKFC5cqNjChQsWW2y3e//3zR28GQxAyvEWfw5m5s3Mm/u79777ZoYUbskRlI1N0ERmzlU2MU1vv/p39MXtf6LPP/k5vfnyBl24dI1Ora/RQtlovrwqOrm0SnNLy7RYWaXTp8/QmfUqna1u1HSm6mrDUnl1a0+V5q99v1q4RnOOSgv2+nWPpouXaXLmedHs4iaVyhcbqrh0gWaXNqXdLP9erJym8vL6noINxXaLKyLYEsdC2F45tUxnLmzTy1cW6cObV+m9X1+hq9vLRBQmeiQs3GxmUB1EgIVe2D5Ln91+jW7+8gVaYlCTM9uUGVmmWH+J4pkTFGN1dB2nTG+Bkj0zFE9Py+/R0cU6DRw4JRo9bDR2aFU0MuHoyIZ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wl66ictFIlGqFQco1dfLNBvfrFJt3+1RZc34RETtejMmY7YUaUwhw+cpvyRTRo5csFV/vAmDR06T4OHzskyx+v+NqphaXtO2g4fPk/jUxfp0PT2d9SWJV6frHr3TW6YbY4meNsElvuQOdYrG3B+cpuXG5QeW3edWW2UapCl/BlLNOpvW5HgAhNABJ93X1+lC6uzdHBglAYjWRpLDBEdyYxRbyhNTzzRQo/+gIj+5hEO5X56/xcbclB/rk9O5L9wngHC8JAL6tgV1gVX+WObNHz0PA1NMSjW0NR5yh/d9LRRDfN27DftzlGOjxs/wVAL2w+pLZ+2fUuvJlxds377t/Fy5posDxWu76mJY9tiD3VQdWg4eJAz+wNgaNwECDKZm80QnWN5uvF6WbiM9w5SqrWDesIpGowZmGBJhe4DNJU6wFDj9NjjTxM98ijFoiE6f2qSPv71Rfr07W0aGOiTSDURai4iHTgSDNLWwaOXOdou0djU87LE+sSxy3SIj1Fh/cDRS7z/eWkHoAe47eTxqzQtRtp2lw8PdXsfMJtoxru+n+tPzGyLM6sj15z5smMrn/xZaqLmABqZCKybry/RO6+V6NXniwKyP9pNuXifC1OALvRNUrFngo4kx6i9JUmP/eAx+sEPH+XyO0M/u1qgD26co4+RfnnwBVgtmParHz8TkefFeKuD5RO8jrcCnjbP1tqYdiH6Ea8/1RKl59jR9q+YT832xejZZmoLUN05g/VsW5zvKyL38bh7T2GxRTNbPfFMxNueecDmVzjNIrBu/bxMl89OM8AMjThReSw9QodYx5ghOP4fXAKY+GMvQn8AAAAASUVORK5CYII=");
    public static final BufferedImage ACCOUNT_ERROR_SURE_IMAGE = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAHgAAAAnCAYAAADEvIzwAAAOb0lEQVR4XuWcTXAVVRbHz2okgZCgkQSN5PH1gsILgoEShahDHmI+gIQQQgzfGYEZw/gxo2KNGkUlfoBRwaHKmSmrZqaGoaypLKwpF9YUNTULlixmwWIWLF24yMLF7Gbu/9w+t2+fvv3eIyTg1Cz+dPe9t/vePr9z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7clIYTaf3jNy533hNWMLZsp61ScEtJ35Ouz2obKs9yDrGhDzqyr0QuAu3UL3eYDFukkafbDdw6zrxgJnAZcN19LPt3wRFkEJcGSNnzaxfSqlWr6OcjT9hINh6DydxfgN0SLRAt8vYrUOp8r0yXl1PmmEq0CbWdTl29XUghLSPYTr/ay/t31SPbAi7ALnLzLiRM4z/+rl3Mmje/iYWUjRPnz19IK+9/gOfht4znvGVAQ6dP9lqNDc6O3lT7rL3e/k1I95XoI0Ol2us618Ybrz5PHwcEmAgsEcC+/VIXHdy7mZa3rKCqmnpmVI3ptQaBmYTLgOXvg51kTjaLL7fCnldPS5Yup+3b1vEj1AtHt9DJ0aITOoX08cyrO1BWSjfafqY1/f7HXurkeRZ67UQHvXBsC2fPtW0PUu2CesNmoeGEqLVwqw1cCH8O7P+3Dv8FK42DJ9VjnGsAAAAASUVORK5CYII=");

    public static final Rectangle SERVER_PREVIOUS_BUTTON = ImageUtil.createRect(646, 481, 765, 519);
    public static final Rectangle SERVER_NEXT_BUTTON = ImageUtil.createRect(646, 527, 765, 565);
    public static final Rectangle SERVER_AGREE_BUTTON = ImageUtil.createRect(626, 478, 741, 512);
    public static final Rectangle ACCOUNT_ERROR_SURE_BUTTON = ImageUtil.createRect(340, 343, 459, 381);

    public LoginServerAction(IWindow targetWindow) {
        super(targetWindow, false);
    }

    @Override
    protected void doExecute() {
        if (beError()){
            targetWindow.execute(op->{
                op.click((int) ACCOUNT_ERROR_SURE_BUTTON.getCenterX(),(int) ACCOUNT_ERROR_SURE_BUTTON.getCenterY());
                op.delay(1000);
                return  null;
            });
        }else if (beAgree()){
            targetWindow.execute(op->{
                op.click((int) SERVER_AGREE_BUTTON.getCenterX(),(int) SERVER_AGREE_BUTTON.getCenterY());
                op.delay(1000);
                return  null;
            });
        }else {
            targetWindow.execute(op->{
                AccountState accountState = stateManager.getState(AccountState.class);
                String[] main = accountState.getMainLocation().split(",");
                String[] sub = accountState.getSubLocation().split(",");

                op.click(Integer.parseInt(main[0]), Integer.parseInt(main[1]));
                op.delay(200);
                op.click(Integer.parseInt(sub[0]), Integer.parseInt(sub[1]));
                op.delay(1000);
                return  null;
            });
        }
    }

    public boolean beError() {
        BufferedImage screen = targetWindow.getState().getGameState().getScreenshot();
        return ImageUtil.haveImage(screen,ACCOUNT_ERROR_SURE_BUTTON,ACCOUNT_ERROR_SURE_IMAGE);
    }

    public boolean beAgree() {
        BufferedImage screen = targetWindow.getState().getGameState().getScreenshot();
        return ImageUtil.haveImage(screen,SERVER_AGREE_BUTTON,SERVER_AGREE_IMAGE);
    }

    public static boolean validate(IWindow window) {
        BufferedImage screen = window.getState().getGameState().getScreenshot();
        return (ImageUtil.haveImage(screen, SERVER_PREVIOUS_BUTTON, SERVER_PREVIOUS_IMAGE) &&
                ImageUtil.haveImage(screen, SERVER_NEXT_BUTTON, SERVER_NEXT_IMAGE)) ||
                ImageUtil.haveImage(screen, SERVER_AGREE_BUTTON, SERVER_AGREE_IMAGE);
    }
}
